package p270jp.pxv.android.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.KeyEvent;
import androidx.appcompat.widget.AppCompatEditText;
import p325m0.MutabilityOwnership;

/* compiled from: LiveChatEditText.kt */
/* renamed from: jp.pxv.android.view.LiveChatEditText */
/* loaded from: classes2.dex */
public final class LiveChatEditText extends AppCompatEditText {
    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public LiveChatEditText(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        MutabilityOwnership.m3745m(context, "context");
        if (!isInEditMode()) {
            setImeOptions(6);
            setRawInputType(1);
        }
    }

    @Override // android.widget.TextView, android.view.KeyEvent.Callback, android.view.View
    public boolean onKeyDown(int i, KeyEvent keyEvent) {
        MutabilityOwnership.m3745m(keyEvent, "event");
        if (i == 66) {
            return false;
        }
        return super.onKeyDown(i, keyEvent);
    }

    @Override // android.widget.TextView, android.view.View
    public boolean onKeyPreIme(int i, KeyEvent keyEvent) {
        MutabilityOwnership.m3745m(keyEvent, "event");
        if (i == 4) {
            clearFocus();
        }
        return super.onKeyPreIme(i, keyEvent);
    }
}
